package com.example.zcl.system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.zcl.system.entity.House;
import com.example.zcl.system.mapper.HouseMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @desc: --
 * @author: Bing
 * @date: 2025-05-29 15:17
 */
@Service
@RequiredArgsConstructor
public class HouseServiceImpl extends ServiceImpl<HouseMapper, House> implements HouseService {
    private final HouseMapper houseMapper;
    @Override
    public House getByHousename(String name) {
        QueryWrapper<House> qw = new QueryWrapper<>();
        qw.eq("name",name);
        return houseMapper.selectOne(qw,false);
    }
}
